/*
DA table generator v. 1.6

Filter from file: C:\Users\GG\Desktop\PRUS\DA\lut2

Real coefficients: 
877 -553 -2563 8745 19757 

Scale coefficent 15

Integral coefficients: 
[28737536,-18120704,-83984384,286556160,647397376]
Input vector size 5
Output vector size 31

Integral coefficients: 
[1654,-1106,-5126,16490,39514]
Input vector size 5
Output vector size 16


*/

module lut2(table_in,table_out);
input [4:0] table_in;
output reg signed[15:0] table_out;


always@(table_in)
          case (table_in)
          5'b00000:table_out = 16'b0000000000000000;
          5'b00001:table_out = 16'b0000001101101101;
          5'b00010:table_out = 16'b1111110111010111;
          5'b00011:table_out = 16'b0000000101000100;
          5'b00100:table_out = 16'b1111010111111101;
          5'b00101:table_out = 16'b1111100101101010;
          5'b00110:table_out = 16'b1111001111010100;
          5'b00111:table_out = 16'b1111011101000001;
          5'b01000:table_out = 16'b0010001000101001;
          5'b01001:table_out = 16'b0010010110010110;
          5'b01010:table_out = 16'b0010000000000000;
          5'b01011:table_out = 16'b0010001101101101;
          5'b01100:table_out = 16'b0001100000100110;
          5'b01101:table_out = 16'b0001101110010011;
          5'b01110:table_out = 16'b0001010111111101;
          5'b01111:table_out = 16'b0001100101101010;
          5'b10000:table_out = 16'b0100110100101101;
          5'b10001:table_out = 16'b0101000010011010;
          5'b10010:table_out = 16'b0100101100000100;
          5'b10011:table_out = 16'b0100111001110001;
          5'b10100:table_out = 16'b0100001100101010;
          5'b10101:table_out = 16'b0100011010010111;
          5'b10110:table_out = 16'b0100000100000001;
          5'b10111:table_out = 16'b0100010001101110;
          5'b11000:table_out = 16'b0110111101010110;
          5'b11001:table_out = 16'b0111001011000011;
          5'b11010:table_out = 16'b0110110100101101;
          5'b11011:table_out = 16'b0111000010011010;
          5'b11100:table_out = 16'b0110010101010011;
          5'b11101:table_out = 16'b0110100011000000;
          5'b11110:table_out = 16'b0110001100101010;
          5'b11111:table_out = 16'b0110011010010111;
          endcase
endmodule
